package com.pro.service.imple;

import com.pro.mapper.JsUserOrderMapper;
import com.pro.pojo.JsProduct;
import com.pro.pojo.JsUserOrder;
import com.pro.pojo.JsonData;
import com.pro.service.JsUserOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName:JsUserOrderServiceImple
 * Package:com.pro.service.imple
 * Description:
 *
 * @Date:2021/11/8 上午 10:47
 * @Author: WYH
 */
@Service
public class JsUserOrderServiceImple implements JsUserOrderService {

    @Autowired(required = false)
    private JsUserOrderMapper jsUserOrderMapper;

    @Override
    public List<JsUserOrder> getAllorder(String orderPaymentChannel, String orderSource,String orderStatus) {
        List<JsUserOrder> allorder = jsUserOrderMapper.getAllorder(orderPaymentChannel,orderSource,orderStatus);
        return allorder;
    }

    @Override
    public int count(String orderPaymentChannel, String orderSource,String orderStatus) {
        return jsUserOrderMapper.count(orderPaymentChannel,orderSource,orderStatus);
    }

    @Override
    public Boolean delOrder(Integer orderId) {
        return jsUserOrderMapper.delOrder(orderId);
    }

    @Override
    public int statusCount(String orderStatus) {
        return jsUserOrderMapper.statusCount(orderStatus);
    }
}
